
export type ResultCommon<T> = {
    code: number;
    message: string;
    errMessage?: string;
    data?: T;
};
export type ResultCommonList<T> = {
    code: number;
    message: string;
    errMessage?: string;
    data?: Array<T>;
};
export type ResultPagination<T> = {
    code: number;
    message: string;
    errMessage?: string;
    data?: {
        /** 列表数据 */
        list: Array<T>;
        /** 总条目数 */
        total?: number;
        /** 总页数 */
        totalPage?: number;
        /** 每页显示条目个数 */
        pageSize?: number;
        /** 当前页数 */
        currentPage?: number;
    };
};
export type FormProps<T> = {
    formInline: T;
}
export type appTreeType = {
    pid: string;
    nodeName: string;
    nodeId: string;
    nodeType: string;
    parentId: string;
};

export type accountPermType = {
    pid?: string;
    account: string;
    serviceId: string;
}


export type logInfoType = {
    /**
     * 1.文档ID（系统自动生成，不需要处理）
     */
    id: string;
    /**
     * 3.请求服务域名
     */
    requestServerName: string;
    /**
     * 4.请求服务地址
     */
    requestUrl: string;


    /**
     * 5.请求Parmas参数
     */
    reqParams: string;

    /**
     * 6.请求体数据（2KB以内JSON）
     */
    reqBody: string;

    /**
     * 7.请求数据长度（含头）
     */
    reqDataLength: number;

    /**
     * 8.响应数据长度
     */
    resDataLength: number;

    /**
     * 9.请求服务时间（到毫秒）
     */
    requestTime: Date;

    reqDate: string;

    /**
     * 10.请求响应时长（毫秒）
     */
    resTime: string;


    /**
     * 11.后端消耗时长（毫秒）
     */
    serverResTime: number;

    /**
     * 12.客户端浏览器信息
     */
    clientAgent: string;

    /**
     * 13.客户端IP地址
     */
    clientIp: string;

    /**
     * 14.处理服务器IP
     */
    serverIp: string;

    /**
     * 16.响应状态
     */
    resStatus: string;

    optStatus: string;

    optReson: string;
    /**
     * 17.请求头
     */
    reqHeaders: string;

    /**
     * 18.响应头
     */
    resHeaders: string;

    /**
     * 19.响应体(2KB以内JSON）
     */
    resBody: string;

    /**============================================================================================================================*/
    /**
     * 20.业务事件流水号
     */
    bizEventId: string;

    /**
     * 21.业务主数据类型
     */
    mdTypeCode: string;

    /**
     * 22.业务主数据ID
     */
    mdId: string;

    /**
     * 23.调用租户ID
     */
    tenantId: string;
    /**
     * 24.调用租户名称
     */
    tenantName: string;

    /**
     * 25.发布服务租户ID
     */
    pubTenantId: string;

    /**
     * 26.发布服务租户名称
     */
    pubTenantName: string;
    appId: string;
    appName: string;
    serviceId: string;
    serviceName: string;
    /**
     * 27.调用客户端ID
     */
    callClientId: string;

    /**
     * 28.调用客户端名称
     */
    callClientName: string;

    /**
     * 29.调用服务真实地址（去处url路径参数后地址）
     */
    callServiceRealUrl: string;
}

export type accountType = {
    pid: string;
    accountName: string;
    password: string;
    realName: string;
    accountDesc: string;
    tenantId: string;
    tenantName: string;
    archiveStatus: string;
    accountType: string;
};

export type clientType = {
    pid: string;
    clientName: string;
    clientKey: string;
    tenantId: string;
    grantDate: string;
    endDate: string;
    clientDesc: string;
    archiveStatus: string;
};

export type cloudType = {
    pid: string;
    cloudName: string;
    cloudBasePath: string;
    tenantId: string;
    cloudDesc: string;
    archiveStatus: string;
};

export type applicationType = {
    pid: string;
    appName: string;
    cloudId: string;
    tenantId: string;
    appUrl: string;
    appDesc: string;
    appStatus: string;
    appOriginalUrl: string;
};

export type serviceType = {
    pid: string;
    serviceName: string;
    serviceDesc: string;
    appId: string;
    appName: string;
    tenantId: string;
    tenantName: string;
    serviceUrl: string;
    serviceUri: string;
    serviceDocId: string;
    publishClientId: string;
    subject: boolean;
    lineStatus: string;
};

export type logSettingType = {
    serviceId: string;
    appName: string;
    serviceName: string;
    serviceUrl: string;
    /**
     * 20.业务事件流水号
     */
    bizEventId: string;
    /**
     * 21.业务事件类型
     */
    bizEventType: string;
    /**
     * 21.业务主数据类型
     */
    mdTypeCode: string;
    /**
     * 22.业务主数据ID
     */
    mdId: string;
    setting_desc_summary: string;
    setting_desc_1: string;
    setting_desc_2: string;
    setting_desc_3: string;
    setting_desc_4: string;
    setting_desc_5: string;
}

export type agentOptionsType = {
    pid: string;
    section: string;
    sectionName: string;
    optionItem: string;
    optionDesc: string;
}

export type agentSettingType = {
    pid: string;
    belongId: string;
    belongType: string;
    optionValue: string;
    settingDesc: string;
    optionDesc: string;
    optionItem: string;
    section: string;
}

export type agentServerTreeType = {
    pid: string;
    nodeName: string;
    nodeId: string;
    nodeType: string;
    parentId: string;
};

export type agentConfType = {
    pid: string;
    confType: string;
    belongServerId: string;
    belongAppId: string;
    confContext: string;
    confDesc: string;
    confVersion: string;
    confStatus: number;
    confStatusDisplay: string;
    updateTime: Date;
}